package com.demo.model;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class Students {
    @Bean("student1")
    public Student student1(){
        Student student=new Student();
        student.setName("张三");
        student.setId(1);
        student.setScore(100);
        return student;
    }
}
